package com.songsf.learn;

import java.util.Date;

/**
 * Created by songsf on 2017/11/12.
 */
public class Book {

    public Book(String bookName,Integer index){
        System.out.println("创建一本书");
        this.bookName = bookName;
        this.createDate = new Date();
        this.index = index;
    }

    private String bookName;
    private Date createDate;
    private Integer index;

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
